<template>
  <!-- 统一调整 -->
  <div>
    <TopFilter :list="filterList" filterChange="hanldeSearch"></TopFilter>
  </div>
</template>

<script>
export default {
  data() {
    return {
      filterList: this.createTopFilterList(),
      tableColumns: this.createTableColumns()
    };
  },
  methods: {
    createTopFilterList() {
      return [
        {
          type: 'INPUT',
          lable: '主组号',
          fieldName: ''
        },
        {
          type: 'INPUT',
          lable: '配件代码',
          fieldName: ''
        }
      ];
    },
    createTableColumns() {
      return [
        {
          title: '测试',
          dataIndex: 'a1'
        }
      ];
    },
    // 点击搜索条件搜索或者重置
    hanldeSearch() {}
  }
};
</script>
